{% extends 'base.html' %}
{% block main %}

    <div class="container">
    <h1>系统设置</h1>
    <div>
    <a style="margin: 10px 0;" class="btn btn-primary" href="{{ url_for('addsystem') }}">添加</a>
    </div>
    <table class="table table-bordered">
    <thead>
    <tr>
        <th>ID</th>
        <th>类型</th>
        <th>值</th>
        <th>备注</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    {% for row in allopt %}
    <tr>
        <th>{{ row.id }}</th>
        <th>{{ row.types}}</th>
        <th>{{ row.values}}</th>
        <th>{{ row.desc }}</th>
        <th>编辑 <a href="/delsystem/{{ row.id }}">删除</a></th>
    </tr>
    {% endfor %}
    </tbody>
    </table>
    </div>
{% endblock %}